
/**
*@author Syrings 
*@version 12 March 2012
// Move player to the HospitalCell (13, 14)
// But this cell is not put into the board now
//********************************************/
package cell;
import player.*;

public class GoToHospitalCell extends Cell{
	
	public GoToHospitalCell(int cellId){
		this.name = "GH";
		this.cellId = cellId;
	}
	
	public void TriggerCell(Player player){
		if (player.getMagicCard(0)) {
			player.setMagicCards(0, false);
			System.out.println("You used the Magic Card\n" +
					"You are save for now!");
		}
		else {
			System.out.println("You should go to the hosiptal!");
			player.setLocation(6, 11);
			player.setCell(24);
			//update the board is a MUST!
			HospitalCell.StartHospital(player, true);
		}
	}
}
